package com.example.demo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private int id;

    private String username;

    private String password;

    @TableField("phone_number")
    private String phoneNumber;

    private String head;

    private String role;

    private String address;

    private String status;

    @TableField(exist = false)
    private LocalDateTime lastActiveTime =  LocalDateTime.now();

    private String email;

    private String nickname;

    private String gender;

    private Integer age;

}


